package com.dubbo.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* User: MeiZhongHao
 * \* Date: 2019-04-24
 * \* Time: 10:35
 * \* Description:
 * \
 */
@RestController
public class ConsumerController {

    @Autowired
    DubboRouteFilter dubboRouteFilter;

    @RequestMapping(value = "/callJson")
    public Object call(@RequestBody CallRequest request) {
        dubboRouteFilter.doRoute(request);
        return null;
    }

}